#ifndef _DEVICE_SPI_H_
#define _DEVICE_SPI_H_

#include <stdio.h>
#include <stdlib.h>
#include <string.h>

#include "driver/spi_master.h"

#include "freertos/FreeRTOS.h"
#include "freertos/task.h"
#include "freertos/queue.h"

#include "device_uart.h"
#include "device_gpio.h"

#include "Product_Config.h"
#include "../LOG.h"

#define HSPI_HOST2 SPI2_HOST

#define PIN_NUM_MOSI1 32 //1号位灯带引脚 70颗

#define PIN_S0 33
#define PIN_S1 25
#define PIN_S2 26
#define SWITCH_DLAY_MS 1 //切换延时

#define TH           0xFC //11111100
#define TL          0XC0 //11000000




extern QueueHandle_t spi_queue_handle;

void device_spi_init(void);



#endif